package com.wgu.crawl.service.impl;

import com.wgu.crawl.CrawlSite;
import com.wgu.crawl.repo.CrawlSiteRepository;
import com.wgu.crawl.service.CrawlSiteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;

/**
 * @Author: w
 * @Date: 2019/6/27 14:29
 * @Version 1.0
 */
@Service
public class CrawlSiteServiceImpl implements CrawlSiteService {
    @Resource
    private CrawlSiteRepository crawlSiteRepository;

    @Override
    @Transactional
    public CrawlSite save(CrawlSite crawlSite) {
        return crawlSiteRepository.save(crawlSite);
    }
}
